/*
 * =====================================================================================
 *
 *       Filename:  main.cc
 *
 *    Description:
 *
 *        Version:  1.0
 *        Created:  01/11/2022 03:09:44 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  first_name last_name (fl), fl@my-company.com
 *        Company:  my-company
 *
 * =====================================================================================
 */

#include "WangPo.h"
#include "PanJinLian.h"
#include "JiaShi.h"

void doPanJinLian() {
    WangPo* pWangPo;
    pWangPo = new WangPo(new PanJinLian());
    pWangPo->MakeEyesWithMan();
    pWangPo->HappyWithMan();
    delete pWangPo;
}

void doJiaShi() {
    WangPo* pWangPo;
    pWangPo = new WangPo(new JiaShi());
    pWangPo->MakeEyesWithMan();
    pWangPo->HappyWithMan();
    delete pWangPo;
}

int main() {
    doPanJinLian();
    doJiaShi();
    return 0;
}
